package cn.edu.wynu.api.collect.list;

import java.util.ArrayList;
import java.util.List;

public class ListLearn {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        System.out.println("size:" + list.size());
        list.add("hello");
        list.add("world");
        list.add("!");

        for (String s : list) {
            System.out.println(s);
        }
    }
}
